swift subset of array match the duplicate elements

visit shbcf.ru